stop
Stops or pauses the active operation of this control.
This typically involves pausing content playback, animations, or data fetching, and potentially reducing resource consumption. The control should retain its state so it can be resumed by #start().
Calling stop()} on an already stopped control should be a no-op.
Stops the playback of stories.This method performs the following actions:
- Sets the
isStarted
flag to false. - Removes any pending callbacks for
nextRunnable
,autoNextRunnable
, andupdateRunnable
from their respective handlers. - Stops video playback using
videoImpl.stopPlayback()
. - If
mediaPlayer
is not null, stops and releases it. - Cancels any ongoing animations on
imageContainer
,videoContainer
, andweb
(if not null). - Sets the visibility of
imageContainer
toINVISIBLE
. - Sets the visibility of
videoContainer
toGONE
. - If
web
is not null:- Executes JavaScript to call
RevelDigital.Controller.onStop()
. - Triggers a JavaScript event named "RevelDigital.Stop".
- Sets the visibility of
web
toINVISIBLE
and its alpha to 0.
- Executes JavaScript to call